<?php

class BuscadorPertinenciaForm extends BaseFormDoctrine
{

	public function setup()
	{
		$this->widgetSchema['docente'] = new sfWidgetFormDoctrineChoice(array('label' => 'Docente', 'model' => 'Docente'));
		$this->widgetSchema['id'] = new WidgetFormPertinencia(array('label' => 'Pertinencia'));
		$this->validatorSchema['id'] = new sfValidatorDoctrineChoice(array('model' => 'Pertinencia', 'column' => 'id'));
		$this->validatorSchema['docente'] = new sfValidatorPass();

		$this->widgetSchema->setNameFormat('pertinencia[%s]');

		$this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

		$this->setupInheritance();

		parent::setup();
	}

	public function getModelName()
	{
		return 'Pertinencia';
	}

}